﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace evolutionary_algorithm
{
    class Program
    {
        static void Main(string[] args)
        {
            Genetic genetic = new Genetic(40, 16);

            while(genetic.haveFound() != 1)
            {
                genetic.generate(3);
                if (genetic.doMutation)
                    genetic.mutation();

                if (genetic.haveFound() == 2)
                    genetic.changeOneGene();
            }
            Console.WriteLine ("Ilosc zmian: "+genetic.counter);
            Console.ReadLine();
        }
    }
}
